package 多线程.生产者消费者模式;

public class BoxDemo {
    public static void main(String[] args) {
    Box b = new Box();
    Producer pd = new Producer(b);
    Customer ct = new Customer(b);
    Thread t1 = new Thread(pd);
    Thread t2 = new Thread(ct);
    t1.start();
    t2.start();



    }
}
